package org.example.main.service;

import org.example.main.entity.Comment;
import org.example.main.entity.Tenant;

import java.util.List;

public interface CommentService {
    int add(Comment comment);
    int deleteById(long commentId);
    int update(Comment comment);
    List<Comment> findByHouseId(long houseId);
    List<Comment> findByTenantId(long tenantId);
    Comment findByHouseIdAndTenantId(long houseId, long tenantId);
    List<Comment> findAll();

}
